package com.example.boot6rabbitmqbalance.dao;

import com.example.boot6rabbitmqbalance.bean.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface MessageMapper {
    @Select("select count(*) from zg_message where message_id = #{messageId}")
    int queryCountFromMessage(int messageId);

    @Insert("insert into zg_message(user_id,message_id,amount) values(#{user_id},#{message_id},#{amount})")
    int addMessage(Message message);
}
